/*************************************************************************/ /* ** $VER: Desert_Gen2HTML V2.04 (22-Apr-1997) ©1996-1997 Terence Nichols */ /* */ /* This Program Produces a GENDEX file and creates HTML Pages for your */ /* system. It is © Copyright 1996-1997 Terence Nichols and may be freely */ /* distributed as Shareware. It is not and never will be Public Domain. */ /* Persons who register by sending me an Email message will be elegable */ /* to recieve update as and when available. */ /* */ /* Please read the Licence Agreement available online at : */ /* http://www.networx.net.au/~spinne/index.html */ /* */ /*************************************************************************/ /* */ /* DO NOT MODIFY ANYTHING THERE ARE NO USER PARAMETERS LISTED BELOW */ /* */ /*************************************************************************/ Pname='DGen2HTML';Version='2.04';Lic='© 1996-1997';Owner='Terence Nichols';Address='spinne@networx.net.au';Shome='www.networx.net.au/~spinne/';OPTIONS RESULTS;SIGNAL ON BREAK_C;SIGNAL ON IOERR;GendexFile='GENDEX.txt';Metawords='';LF='0A'x;BELL='07'x;ESC='1B'x;VT='0B'x;List.0=0;Dlist.0=0;enum=0;i=0;Mi=0;Dt=0;MAIN:;CALL CHECK;CALL TOOLTYPES;ADDRESS VALUE "SCIONGEN";GETDBNAME;dbname=RESULT;GETDBPATH;dbpath=RESULT;IF RIGHT(dbpath,1) ~='/' THEN Dbpath= Dbpath||'/';CALL WELCOME;CALL MAKEQUICKINDEX;CALL QUICKPAGE;CALL MAINPAGE;CALL TOPPAGE;CALL INTROPAGE;IF Bpages ~=1 THEN CALL PERSONALINDEXPAGE;IF Gdx=1 THEN CALL GENGENDEX;IF Bpages ~=1 THEN CALL CREATEPAGES;IF Bpages=1 THEN CALL BIGPAGES;CALL THANKYOU;IF SHOW('P','VOYAGER') THEN CALL VOYAGERVIEW;EXIT;CHECK:;IF ~SHOW(l,'rexxreqtools.library') THEN;DO;IF ~addlib('rexxreqtools.library',0,-30) THEN;DO;SAY 'Please install the rexxreqtools.library in your libs: directory';END;END;IF ~SHOW(l,'rexxtricks.library') THEN;DO;IF ~addlib('rexxtricks.library',0,-30) THEN;DO;Rtext='Please install the rexxtricks.library in your libs: directory';enum=1;CALL RERROR;END;END;IF ~SHOW('P','SCIONGEN') THEN;DO;SAY BELL;SAY ''ESC'[32m';SAY 'Please'ESC'[33m Start'ESC'[32m Scion'ESC'[31m' Now''LF'';Rtext=Pname Version LF 'Requires SCION to be running';enum=2;CALL RERROR;END;RETURN;MAKEQUICKINDEX:;SAY 'Creating 'Pname Version 'Index';GETTOTALIRN;List.0=RESULT;DO id=1 TO List.0;GETLASTNAME id;Lastname=RESULT;IF Lastname="" THEN Lastname='UNKNOWN';IF WORDS(Lastname)>1 THEN Lastname=TRANSLATE(Lastname,"_"," ");GETFIRSTNAME id;First=RESULT;IF First="" THEN First='Firstname UNKNOWN';List.id=Lastname LEFT(First,3) id;END;a=rxtr_qsort(List,,,,);nl=0;DO id=1 to List.0;idm=id-1;m=RXTR_MATCHPATTERN(WORD(List.id,1),WORD(List.idm,1),'CASE');IF m=0 THEN;DO;nl=nl+1;Nlist.nl=WORD(List.id,1);END;Nlist.0=nl;END;IF Metakey=1 THEN;DO id=1 to Nlist.0;Metawords=Metawords||','||Nlist.id;END;RETURN;QUICKPAGE:;SAY 'Building Quick Index Page';File='qhtml';Idpage='quick.'||Ext;IF ~OPEN(''||File||'',''||GendexPath||''||Idpage||'',W) THEN;DO;Rtext='Cannot Open 'Idpage;enum=3;CALL RERROR;END;htitle=Realname' Genealogy Quick Index';CALL HEADDERTEXT;Mycol='Quick';CALL COLORSET;Ufile='prequick.txt';CALL USERTEXT;Fdata='